package xyz.renyumeng.xkm.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.renyumeng.xkm.dto.order.UserOrderDto;
import xyz.renyumeng.xkm.dto.order.UserOrderPage;
import xyz.renyumeng.xkm.model.order.OrderInfo;
import xyz.renyumeng.xkm.result.Result;

import java.util.List;

/**
 * @author renyumeng
 * @date Created in 21:48 2023/6/30
 */
public interface UserOrderService extends IService<OrderInfo> {
    Result<List<UserOrderDto>> getUserOrderInfos(UserOrderPage userOrderPage);

    Result<UserOrderDto> getUserOrderInfo(Long userId, Long orderId);

    Result<Object> deleteOrder(Long orderId);

    Result<List<OrderInfo>> getUnpaidOrder(Long userId);

}
